﻿using System;
using System.Runtime.CompilerServices;

namespace Sustainalytics.Utils.Logging.Serilog
{
    public static class DebugHelper
    {
        public static string GetCallerName(
          [CallerMemberName] string memberName = "")
        {
            return memberName;
        }

        public static Tuple<string, string, int> GetCallerInfo(
          [CallerMemberName] string memberName = "",
          [CallerFilePath] string filePath = "",
          [CallerLineNumber] int lineNumber = 0)
        {
            return Tuple.Create(memberName, filePath, lineNumber);
        }
    }
}
